package cn.yusei.teamTribe.entity;

public class TeamAlbum {

	private int id;
	private String name;
	private int teamId;
	private String cover;
	private String description;
	private String createTime;
	private int type;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getTeamId() {
		return teamId;
	}
	public void setTeamId(int teamId) {
		this.teamId = teamId;
	}
	public String getCover() {
		return cover;
	}
	public void setCover(String cover) {
		this.cover = cover;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	
	public boolean isValid() {
		if(this.name == null || name.length() == 0 || name.length() > 16)
			return false;
		if(teamId <= 0)
			return  false;
		if(cover == null || cover.length() != 32)
			return false;
		if(description == null || description.length() > 45)
			return false;
		if(type != 1 && type != 2)
			return false;
		return true;
	}
}
